package com.upcode.weighing.common.util;

public enum StatesCode {
    /**
     * 入库失败
     */
    INSER_ERROR(90001, "入库失败"),
    SYSTEM_ERROR(9999, "系统异常"),
    UER_EXITS(90002, "该用户已存在"),
    CREDENTIAL_EXITS(90003, "该证件已注册"),
    SUCCESS(200, "成功");

    private final int code;

    private final String msg;

    StatesCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }

}
